Chapter 31: Creating New Node Types
Table Of Contents
Chapter 31: Creating New Node Types
Defining a Node-Type Name
Defining a Node Interface
Creating Multiple New Node Types
Understanding External Prototypes
Creating Multiple New Node Types in the Same File
The PROTO Definition Syntax
The EXTERNPROTO Declaration Syntax
Experimenting with New Node Types
Creating a New Material Node Type
Figure 31.1
Definition and use of a WallColor node type.
Figure 31.2
An external file containing a material library with the WallColor-node-type definition.
Figure 31.3
A world that uses an externally declared node type.
Creating a New Appearance Node Type
Figure 31.4
An external file containing an appearance library with wood appearances.
Figure 31.5
Two spheres using appearance-node types from an external appearance library file.
Creating a New Geometry Node Type
Figure 31.7
A donut shape built using the Donut geometry node and the LightOak appearance node.
Creating a New Filter Node Type
Creating a Spin-Group Node Type
Figure 31.9
A SpinGroup node type used to automatically spin a group of three boxes.